package com.xl.cloud.apis;

import com.xl.cloud.resp.ResultData;
import com.xl.cloud.resp.ReturnCodeEnum;
import org.springframework.stereotype.Component;

/**
 * @Author XiangLiang
 * @Since 2024/9/30 16:16
 * @Description: PayFeignSentinelApiFallBack类
 */
@Component
public class PayFeignSentinelApiFallBack implements PayFeignSentinelApi {
    @Override
    public ResultData getPayByOrderNo(String orderNo) {
        return ResultData.fail(ReturnCodeEnum.RC500.getCode(), "对方服务宕机或不可用，FallBack服务降级o(╥﹏╥)o");
    }
}
